import { request } from '@/service/request';

/** 获取微信支付配置列表 */
export function fetchGetWithdrawList(params?: Api.Business.WithdrawSearchParams) {
  return request<Api.Business.WithdrawList>({
    url: '/withdraw/getAll',
    method: 'post',
    data: params
  });
}

export function fetchToWithdraw(params?: { id: number }) {
  return request<boolean>({
    url: '/withdraw/pay',
    method: 'post',
    data: params
  });
}
